﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/FormFill.master" AutoEventWireup="true" CodeBehind="AtendimentoCallCenter.aspx.cs" Inherits="PopPromotoraCallCenter.AtendimentoCallCenter" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
    CallCenter
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="View" runat="server">

    <asp:Panel ID="pnlSorteio" runat="server" DefaultButton="btnSortear">
        <ul>
            <li class="TabbedPanelsTab" tabindex="0">Sortear Cliente</li>
        </ul>
        <br />
        <div class="TabbedPanelsContent">
            <table>
                <tr>
                    <th>
                        <label>Campanha</label>
                    </th>
                    <td>
                        <asp:DropDownList ID="ddlCampanha" runat="server" CssClass="labelCampo">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="btnSortear" CssClass="BotaoForm" runat="server" Text="Sortear cliente" OnClick="btnSortear_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlAtendimento" runat="server">
    </asp:Panel>
    <asp:Panel ID="pnlDadosCliente" runat="server">
        <asp:HiddenField ID="hfIdCampanha" runat="server" Value="0" />
        <asp:HiddenField ID="hfIdFila" runat="server" Value="0" />
        <asp:HiddenField ID="hfIdCliente" runat="server" Value="0" />
        <table border="0" cellspacing="0" cellpadding="0" class="board">
            <tr>
                <th>Início Atendimento</th>
                <th>Tempo de Atendimento</th>
                <th>Campanha</th>
            </tr>
            <tr>
                <td >
                    <asp:HiddenField ID="hfTempoInicial" runat="server" />
                    <asp:Label ID="lblInicioAtendimento" runat="server" Text="" Width="200px" />
                </td>
                <td style="width: 370px">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <div>
                                <asp:HiddenField ID="hfTempoFinal" runat="server" />
                                <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick">
                                </asp:Timer>
                                <asp:Label ID="lblContador" runat="server" Text="" Width="200px"/>
                                <br />
                                <br />
                                <asp:Label ID="lblResultado" runat="server" Text=""></asp:Label>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>

                </td>
                <td >
                    <asp:Label ID="lblNomeCampanha" runat="server" Text="" Width="400px"></asp:Label>
                </td>
            </tr>
        </table>
        <div class="clearBoth height30"></div>
        <table border="0" cellspacing="0" cellpadding="0" class="boardUnder">
            <tr>
                <th>Nome</th>
                <th>UF</th>
                <th>Convênio</th>
            </tr>
            <tr>
                <td >
                    <asp:Label ID="lblNomeCliente" runat="server" Text="" Width="195px" /></td>
                <td >
                    <asp:Label ID="lblUF" runat="server" Text="" Width="190px"></asp:Label></td>
                <td >
                    <asp:Label ID="lblConvenio" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>CPF</th>
                <th>Cidade</th>
                <th>Margem</th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblCPF" runat="server" Text=""></asp:Label></td>
                <td>
                    <asp:Label ID="lblCidade" runat="server" Text=""></asp:Label></td>
                <td>
                    <asp:Label ID="lblMargem" runat="server" Text="" />
                </td>
            </tr>
            <tr>
                <th>Idade</th>
                <th>Bairro</th>
                <th>Prazo</th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblIdade" runat="server" Text=""></asp:Label></td>
                <td>
                    <asp:Label ID="lblBairro" runat="server" Text=""></asp:Label></td>
                <td>
                    <asp:Label ID="lblPMT" runat="server" Text="" Visible="false" /></td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <th>CEP</th>
                <th>Descrição</th>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <asp:Label ID="lblCEP" runat="server" Text=""></asp:Label></td>
                <td>
                    <asp:Label ID="lblDescricao" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <th>Telefones</th>
                <th>SCORE</th>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <asp:Button ID="btnConsultaZipCode" runat="server" Text="Zip Code" CssClass="BotaoForm" OnClick="btnConsultaZipCode_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnConsultaConfirme" runat="server" Text="Confirme Online" CssClass="BotaoForm" OnClick="btnConsultaConfirme_Click" />
                    <%--<asp:DataList ID="dlContato" runat="server" RepeatColumns="2" CellSpacing="8">
                        <ItemTemplate>
                           <asp:Label ID="lblContato" runat="server" Text='<%# Eval("Telefone") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>--%>
                    <asp:DataList ID="dlContato" runat="server" RepeatColumns="1">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblContato" Text='<%# Eval("Telefone") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:DataList ID="dlContatoService" runat="server" RepeatColumns="1">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblContato" Text='<%# Eval("Telefone") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                    <%--<asp:DataList ID="dlContatoService" runat="server" RepeatColumns="2" CellSpacing="8">
                        <ItemTemplate>
                            <asp:Label ID="lblContato" runat="server" Text='<%# Eval("Telefone") %>'></asp:Label>
                        </ItemTemplate>
                        <SeparatorStyle Wrap="False" />
                    </asp:DataList>--%>
                </td>
                <td>
                    <asp:Label ID="lblScore" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <div style="margin-left: 75px;">
        </div>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FormTab" runat="Server">
    <ul>
        <li class="TabbedPanelsTab" tabindex="0">
            <asp:Label ID="lblAcao" runat="server" Text="Cliente" />
        </li>
    </ul>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FormFill" runat="Server">
    <div class="TabbedPanelsContent" runat="server" id="dvAcoes">

        <table>
            <tr>
                <th>
                    <label>Situação</label></th>
                <td>
                    <asp:DropDownList ID="ddlSituacao" runat="server" AutoPostBack="true"
                        CssClass="CampoForm" OnSelectedIndexChanged="ddlSituacao_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <th>&nbsp;</th>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <th>
                    <label>Comentário</label></th>
                <td colspan="3">
                    <asp:TextBox ID="txtComentario" TextMode="MultiLine" Rows="8" Columns="60" CssClass="CampoForm" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr id="trAgendamento" runat="server">
                <th>
                    <label>Agendamento</label></th>
                <td>
                    <asp:DropDownList ID="ddlHora" runat="server" CssClass="CampoForm">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlDia" runat="server" CssClass="CampoForm">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr id="trProposta" runat="server">
                <th>
                    <label>ID PROPOSTA</label></th>
                <td>
                    <asp:TextBox ID="txtIdProposta" runat="server" Width="200" CssClass="CampoForm"></asp:TextBox></td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="FormFillButton" runat="Server">
    <asp:Button ID="btnFinalizar" runat="server" CssClass="BotaoForm" Text="Finalizar atendimento" OnClick="btnFinalizar_Click" />
    <br />
    <asp:Label ID="lblMsg" runat="server" Text="" CssClass="msgErro"></asp:Label>
</asp:Content>
